﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Heavyload
{
    class Calculation
    {
        public double r { get; set; }
        public double a { get; set; }
        public double b { get; set; }
        public double result { get; set; }
        //圆面积
        public Calculation(double r)
        {
            result = r * r * 3.14;
        }
        //长方形面积
        public Calculation(double a,double b)
        {
            result = a * b;
        }
        public void Result() 
        {
            Console.WriteLine("计算面积结果为："+result);
        }
    }
}
